package com.kaibes.core.base.util;

import java.math.BigInteger;

public class BigIntegerUtils {

    public final static BigInteger BIG_INTEGER_ZERO = new BigInteger("0");
    public final static BigInteger BIG_INTEGER_ONE = new BigInteger("1");
    
    public static BigInteger getBigInteger(String value) {
        if (value.isEmpty()) {
            value = "0";
        }
        return new BigInteger(value);
    }
    
    public static BigInteger getBigInteger(int value) {
        return new BigInteger(String.valueOf(value));
    }
    
    public static BigInteger getBigInteger(long value) {
        return new BigInteger(String.valueOf(value));
    }
    
}
